package com.example.db1.controller;

import com.example.db1.model.Order;
import com.example.db1.service.IOrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: abp
 * @Created: 2025/3/8 13:18
 */
@RestController
@RequestMapping("/db1")
public class Db1Controller {
    @Resource
    private IOrderService orderService;

    @GetMapping("/order")
    public List<Order> getUsers() {
        return orderService.getOrderList();
    }
}
